package com.hqyj.freemovie.front.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.freemovie.front.domain.Movie;

import java.util.List;

public interface MovieService extends IService<Movie> {


    //新增电影资料
    public boolean saveMovie(Movie movie) throws Exception;


     //修改电影资料
    public boolean updateMovie(Movie movie) throws Exception;

    //删除电影资料
    public boolean removeMovie(Integer id) throws Exception;

    //根据电影的编号查询电影。
    public Movie queryMovieById(Integer id) ;

    // 根据类型查询电影集合
    public List<Movie> queryMovieListByType(String type);

    //根据类型查询电影分页
    public Page<Movie> queryMoviePagerByType(String type,String keyword, Integer currentPageNumber);
}
